package com.yunxi.model.vip;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.yunxi.core.web.DateJsonDeserializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2019-09-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("pms_vip_apply")
@ApiModel(value="VipApply对象", description="")
public class VipApply implements Serializable {
    @ApiModelProperty(value = "申请单主键")
    @TableId(value = "APPLY_ID", type = IdType.UUID)
    private String applyId;

    @ApiModelProperty(value = "客户id")
    @TableField("VIP_ID")
    private String vipId;

    @ApiModelProperty(value = "客户名称")
    @TableField("VIP_NAME")
    private String vipName;

    @ApiModelProperty(value = "客户类型")
    @TableField("VIP_TYPE")
    private Integer vipType;

    @ApiModelProperty(value = "客户类型")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "联系人")
    @TableField("MAIN_LINKMAN")
    private String mainLinkman;

    @ApiModelProperty(value = "联系人电话")
    @TableField("MAIN_PHONE")
    private String mainPhone;

    @ApiModelProperty(value = "详细地址")
    @TableField("VIP_ADDR")
    private String vipAddr;

    @ApiModelProperty(value = "渠道商")
    @TableField("PARTNER_CODE")
    private String partnerCode;

    @ApiModelProperty(value = "业务类型")
    @TableField("BUSINESS_TYPE")
    private String businessType;

    @ApiModelProperty(value = "购车用途")
    @TableField("PURPOSE")
    private String purpose;

    @ApiModelProperty(value = "区域")
    @TableField("REGION")
    private String region;

    @ApiModelProperty(value = "车系")
    @TableField("SERIES_NAME")
    private String seriesName;

    @ApiModelProperty(value = "1厂0店")
    @TableField("SUBMIT_TYPE")
    private Integer submitType;

    @ApiModelProperty(value = "报备日期")
    @TableField("SUBMIT_DATE")
    private Date submitDate;

    @ApiModelProperty(value = "提报人")
    @TableField("SUBMIT_USER")
    private String submitUser;

    @ApiModelProperty(value = "状态")
    @TableField("STATUS")
    private Integer status;

    @ApiModelProperty(value = "细节描述")
    @TableField("MEMO")
    private String memo;

    @ApiModelProperty(value = "创建时间")
    @JsonDeserialize(using = DateJsonDeserializer.class)
    @TableField(value ="CREATE_TIME",fill = FieldFill.INSERT)
    private Date createTime;
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATE_BY")
    private String createBy;

    @ApiModelProperty(value = "更新时间")
    @JsonDeserialize(using = DateJsonDeserializer.class)
    @TableField(value ="UPDATE_TIME",fill = FieldFill.UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "更新人")
    @TableField("UPDATE_BY")
    private String updateBy;

    @ApiModelProperty(value = "删除标识")
    @TableField("IS_DEL")
    private Integer isDel;

    @ApiModelProperty(value = "总数量")
    @TableField("vcount")
    private Integer vcount;

    @ApiModelProperty(value = "总金额")
    @TableField("amount")
    private BigDecimal amount;

    @TableField("deal_time")
    private Date dealTime;

    private transient String businessTypeCn;

    private BigDecimal discount;

    @TableField("SPECIAL_DISCOUNT")
    private BigDecimal specialDiscount;

    private String partnerFinancial;

    private String applyNo;

    private String payway;
}
